<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
    public static $rules = [
        'name' => 'required',
        'slug' => 'required',
        'icon' => 'required',
    ];

    protected $guarded = ['id'];

    protected $casts = [
        'id' => 'int',
        'games_count' => 'int',
    ];
}
